how does kepler work